package com.lvm.app.api.entity;

import com.alibaba.fastjson.annotation.JSONPOJOBuilder;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 主题内容记录
 * </p>
 *
 * @author zhouxf
 * @since 2021-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lvm_topic_rec")
@ApiModel(value="LvmTopicRec对象", description="主题内容记录")
public class LvmTopicRec extends Model<LvmTopicRec> {

    private static final long serialVersionUID = 1L;

        /**
        * 主键
        */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

        /**
        * 标题
        */
    @ApiModelProperty(value = "标题")
    private String title;

        /**
        * 备注
        */
    @ApiModelProperty(value = "备注")
    private String description;

        /**
        * 缩略图列表
        */
    @ApiModelProperty(value = "缩略图列表")
    private String thumbList;
    @TableField(exist = false)
    private List<LvmFileRec> thumbListObj;

        /**
        * 视频列表
        */
    @ApiModelProperty(value = "视频列表")
    private String videoList;
    @TableField(exist = false)
    private List<LvmFileRec> videoListObj;

        /**
        * 图片列表
        */
    @ApiModelProperty(value = "图片列表")
    private String picList;
    @TableField(exist = false)
    private List<LvmFileRec> picListObj;



        /**
        * 内容相关Key
        */
    @ApiModelProperty(value = "内容相关Key")
    private String keyList;
    @TableField(exist = false)
    private List<String> keyListObj;

        /**
        * 内容富文本
        */
    @ApiModelProperty(value = "内容富文本")
    private String bodyHtml;

        /**
        * 创建时间
        */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private LocalDateTime createTime;

        /**
        * 更新时间
        */
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private LocalDateTime modifyTime;

        /**
        * 相关内容推荐
        */
    @ApiModelProperty(value = "相关内容推荐")
    private String relList;

        /**
        * 封面URI
        */
    @ApiModelProperty(value = "封面URI")
    private String posterUrl;

        /**
        * 文章类型
        */
    @ApiModelProperty(value = "文章类型")
    private Integer type;

        /**
        * 分类Id
        */
    @ApiModelProperty(value = "分类Id")
    private Long classifyId;

        /**
        * 点击量
        */
    @ApiModelProperty(value = "点击量")
    private Long hits;

        /**
        * 封面图
        */
    @ApiModelProperty(value = "封面图")
    private String coverPic;

    @TableField(exist = false)
    private LvmFileRec coverPicObj;

        /**
        * 视频封面
        */
    @ApiModelProperty(value = "视频封面")
    private String coverVideo;

        /**
        * 评分
        */
    @ApiModelProperty(value = "评分")
    private Integer score;

    @ApiModelProperty(value = "状态 -1 待审核,1 审核通过")
    private Integer status;
}